package cn.hospital.dao;

import cn.hospital.entity.Diagnosis;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DiagnosisMapper {
    int deleteByPrimaryKey(Integer diagnosticId);

    int insert(Diagnosis record);

    /**
     * 诊断表添加
     *
     * @param diagnosis
     * @return
     */
    int insertSelective(Diagnosis diagnosis);

    Diagnosis selectByPrimaryKey(Integer diagnosticId);

    int updateByPrimaryKeySelective(Diagnosis record);

    int updateByPrimaryKey(Diagnosis record);

    /**
     * 查询病人id
     * @param diagnosis
     * @return
     */
    Diagnosis selectPatientInformationSheetId(Diagnosis diagnosis);
}